<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class M9_cate extends Model
{
    //指定表名
    protected $table ='cate';
    //取消时间
    public $timestamps = false;

    //定义主键
    protected $primaryKey = 'cid';

    /**
     * 获取类下的商品。
     */
    public function goods()
    {
        return $this->hasMany('App\Model\M9_good','g_cid','cid');
    }
}
